package com.pattern.proxy.v1;

import java.util.Random;

/**
 * 1. 问题： 我想记录坦克移动时间 ----> v2版本
 */
public class Tank implements Movable{
    @Override
    public void move() {
        System.out.println("tank moving ");
        try {
            Thread.sleep(new Random().nextInt(10000));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}

interface Movable {
    void move();
}
